<%@taglib uri="/struts-tags" prefix = "s" %>
<%@ page language="java" import="java.sql.*,java.util.*"
	pageEncoding="utf-8"%>
	<%
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	 <script type="text/javascript" src="<%=path %>/js/jquery1.3.2.js"></script> 
	<script>
	function member_manged_menu() {
            document.getElementById("message").style.display = "block";
//             document.getElementById("fade").style.display ="block";
        }
          function hedeall() {
			 alert("测试成功");           
            document.getElementById("message").style.display = "none";
//             document.getElementById("fade").style.display = "none";
            
        }
        var dataTemp = null;
function query(myS){
	alert(myS);
//  	var nameVal = $('form input[name="q"]').val();
	$.post("<%=request.getContextPath() %>/message/message.jsp",
		{recName: myS},
		function(res){
		$('#message').html(res);
		}
	);
}
	</script>
	<style>
		a {
			color: rgb(63,98,166);
			text-decoration: none;
		}

		.grid-view table.items th, .grid-view table.items td {
			font-size: 0.9em;
			border: 1px white solid;
			padding: 0.3em;
		}

		div#gridview-list-grid table td {
			padding: 5px 2px;
			border-top: none;
			border-left: none;
			border-right: none;
			border-bottom: 1px solid #D6D6D6;
			word-break: break-all;
			word-wrap: break-word;
		}

		input.button_small {
    font-size: 13px;
    padding: 2px 16px;
        text-align: center;
}

		input.button, input.button_small, input.button_user_action {
    border: 0px;
    color: white;
    cursor: pointer;
    font-family: 微软雅黑,Arial,Helvetica,sans-serif;
    background-color: rgb(255,159,30);
    vertical-align: middle;
}

		div#gridview-list-grid table th {
    color: rgb(107,107,107);
    background-image: none;
    font-size: 12px;
    border: none;
    border-bottom: 2px solid rgb(222,222,222);
    font-weight: bold;
    padding: 6px 0px;
    white-space: nowrap;
    text-align: left;
}

* {
    margin: 0px;
    padding: 0px;
        color: #555;
}

		html, body {
			width: 100%;
			height: 100%;
			margin: 0;
			padding: 0;
			font-family: "WenQuanYi Micro Hei",微软雅黑,Arial,Helvetica,sans-serif;
			font-size: 12px;
			font-weight: normal;
			color: #555;
		}
		table{

			margin-top: 20px;
		}
	</style>
</head>
<body>
	<div class="border_white padding_10" style="height:100%;">

	<form method="post" action="<%=path %>/message/delete_message" style="position:absolute;z-index:1000;">
		<div id="gridview-list-grid" class="grid-view"><div style="float:left;"><input id="delete_button" class="button_small" onclick="delUserMsg();" name="yt1" type="submit" value="删除"></div>
		<div class="summary">&nbsp;</div>
		<table class="items">
			<thead>
				<tr>
					<th class="checkbox-column" id="gridview-list-grid_c0"></th><th id="gridview-list-grid_c1">发信人</th><th style="width:400px" id="gridview-list-grid_c2">内容</th><th id="gridview-list-grid_c3">发信时间</th></tr>
				</thead>
				<tbody>
				<s:iterator value="#request.messages" var="message" > 
					<tr class="odd"><td class="checkbox-column"><input value="<s:property value="#message.id"/>" id="gridview-list-grid_c0_0" type="checkbox" name="mId"></td><td style="width:80px;"><a title="<s:property value="#message.sendName"/>" target="_blank" href="http://www.jiushujie.com/user/11682504" fhzd_has_check="true"><s:property value="#message.sendName"/></a></td><td><a target="message"  onclick="query('<s:property value="#message.sendName"/>');member_manged_menu();;"><s:property value="#message.content"/></a><br></td><td style="width:80px;"><s:property value="#message.send_date"/></td></tr>

				</s:iterator>
				</tbody>
			</table>
			<div class="keys" style="display:none" title="/outbox"><span>38106</span><span>38105</span><span>38077</span></div>
		</div>
		</form>
		<div id="message" style="width:100%;height:100%;display:none;position:absolute;z-index:1001;"> </div>	
<!-- 							<iframe name="message" style="width:100%;height:100%;display:none;position:absolute;z-index:1001;" id="message" frameborder="no" scrolling="no"  src="<%=path%>/message/message.jsp?rec_id=<s:property value="#request.voItem.owner.id"/>&rec_=<s:property value="#request.voItem.owner.name"/>" ></iframe> -->
		</div>
	
	</body>
	</html>



